060 rising_fallin edge + increment_decrement usage
你好,在这个视频中,我们将继续学习FCL编程语言,随着年龄的增长和以下说明,Incorporeal,我将创建一个新项目是主要组织博客。
Hello, in this video, we are going to continue to learn FCL programming language with the rising age and the following instructions, Incorporeal, I will create a new project is Main Organization blog.
例如,在这里我将从如果我们不使用年龄增长的情况开始。
And in here I will start with the if we are not using rising age, for example.
现在我们将学习两件事。
Now we will learn two things.
首先,年龄的上升和年龄的下降。
First of all, rising age and the falling age.
第二件事,递增或递减,好吧,这是我们要学习的,首先,让我们开始输入,例如,五,然后我们要做什么,例如,数据。
And the second thing, increment or decrement, OK, this to think that we are going to learn, first of all, let's start if input, for example, five, let's say, and then what we are going to do, for example, data.
它调用数据加一,好吧,在这里,我们正在做的事情,我们正在递增,好吧,这真的很重要。
It calls to data plus one, OK, in here, what we are doing, we are incrementing, OK, this is really important.
如果在这里你可以看到年龄上升或下降,以及这些数据会发生什么。
And if and in here you can see rising age or falling age and what will happen to this data.
我们来定义这个类型。
Let's define this type.
这将是全球记忆,这将是比尔和OK。
And this will be global memory and this will be Bill and OK.
对于数据,我们将攻击和全局内存定义为整数。
And for the data, let's define attack and global memory as integer.
好的,现在我们可以将这个项目下载到模拟器中了。
OK, now we can download this project to simulator.
主啊,上网吧。
And Lord, go online.
现在我该怎么办?
And now what will I do?
我将激活这个输入五。
I will activate this input five.
好吧,我们说实话吧。
OK, let's say true.
我们来检查一下这个数据。
Let's check this data.
您可以看到我们没有增加数据,只是一个脉冲或一次。
You can see we are not incrementing data, just one pulse or just one time.
每个周期它总是递增的。
It is always incrementing and each cycle.
你可以看到这个值有点疯狂,我想阻止它。
And you can see this this value is a little bit crazy and I want to stop it.
好的,让我们输入 5,并将其设置为 false。
OK, let's go to input five and let's make it false.
现在我们可以继续,如果输入 5,那么我们可以为上升年龄做什么,而不是,例如,像这样上升年龄。
And now we can continue if input five and then what can we do for the rising age and not, for example, let's say, rising age like this.
好的,然后是这个。
OK, and then this one.
现在我们需要做的是,我们需要说年龄的增长等于。
And now what we need to do, we need to say rising age equals to.
输入。
Input.
五,好的,现在我们需要将这个不断增长的年龄变量定义为 Bill 全局内存,这就是 Bill。
Five, OK, and now we need to define this rising age variable as bill global memory, and this will be Bill.
好的,现在让我们开始,一旦你输入了五个并决定,让我们下载这个项目。
OK, and now let's start once you put five and decide and let's do a download this project.
而我们已经知道这个数据值是没有数据的。
And we already know this data value is there is no data.
好吧,这是零。
OK, this is zero.
让我们输入五一和。
And let's make input five one and.
它刚刚被激活。
It is just activated.
好的,现在你可以看到这个数据是负一万七千五百三十七,我想把这个操作修改为零。
OK, and now you can see this data is minus seventeen thousand five hundred thirty seven and I want to modify this operation to zero.
是不是又变了,修改操作数为零,但是不允许。
Is it changing again, modify operand to zero, but it is not allowing.
再说一遍,我愿意。
Again, I want to.
将此操作修改为零。
Modify this operation to zero.
不,它没有改变。
No, it is not changing.
好吧,确实如此。
OK, so it is.
这个值,让我们继续这个,你知道,一旦你看到它是负一万七千五百三十七,它就会递增。
This value and let's continue with this one, you know, it is incremented once you can see it is minus seventeen thousand five hundred thirty seven.
如果我将此值增加为 1,将会发生什么或。
If I increment this value as one and what will happen or.
我可以。
I can.
就是负一万七千五百三十六了,好吧,它的活动输入一次,下降一次,你可以看到这个数据是一,好吧,现在清零了,这是一。
It will be minus seventeen thousand five hundred thirty six, OK, and its activities input once and falls and once more and you can see this data is one, OK, now it's cleared and this is one.
现在让我们输入 5 笔资金,然后将其设为 false,然后制作 5 笔资金。
And now let's go to input five funds and let's make it false and let's make ones.
是两个,好吧,你可以看到。
And it's two, OK, you can see it.
再一次。
And once more.
它应该是免费的,现在你可以看到它是三个,然后转到这个,你在“确定”上输入这个 make,它是四个,所以这是正确的。
It should be free and now you can see it's three and it's go to this one, you input this make on OK, and it's four, so that's correct.
现在我们正在随着上升沿进行一一递增。
Working now we're incrementing one by one with the rising edge.
好的,你可以在这里看到,我们也可以使用下面的 H 我们该如何做到这一点?
OK, and you can see in here and also we can use following H how can we do this?
首先,让我们减少这个值。
Let us decrement this value, first of all.
另外,如果不输入 5 和上升沿,则继续反正弦,然后输入这个。
And also if let's continue inverse sine if not input five and rising edge then this one.
好的,我们现在将递增,抱歉递减,我们现在正在失去跟随优势。
OK, and we will increment now sorry decrement and we are losing following edge now.
好的。
OK.
我们已经准备好了。
And we are ready.
在这里,我会说这个OK,这个数据是Treena。
In here, I will say this of OK, this data is Treena.
好的,你可以看到它,我将激活输入五比这。
OK, you can see it and I will activate the input five than this.
真的。
True.
你可以看到它是三个,现在是三个。
And you can see it three now it's three.
三,还是三。
Three, still three.
我将激活它。
And I will activate this.
激活这个。
Activate this one.
好的,现在两个在下面的边缘。
OK, now two on the following edge.
好的,跟随一边。
OK, following a side.
这意味着从一个条件到提供条件。
So that means from one condition to offer condition.
这个节奏立即记录了这个值。
This pacing is documenting this value at once.
好的,这是两次,让我们开始一次,让我们实现它。
OK, this is two and let's start once and let's make it true.
现在你可以看到它仍然是两个,好吗?
And now you can see it's still two, OK?
如果我激活这个激活的一开二关,现在你可以看到它是一。
And if I activate this activated one on two off and now you can see it's one.
因此,对于上升沿,我们正在做的事情不是我们现在需要把它放在这里。
So for the rising edge, what we are doing this not we need to put this not to here now.
好的,现在你会看到,当我激活输入时,呃,五,这个音量将立即增加。
OK, and now you will see when I activate the input, uh, five, this volume is going to be increment immediately.
现在我们可以开始了,我将激活输入五并说“是”,这样您就可以切换到“确定”,让我们让它落下,再一次,您可以突然看到三个。
So now we can start and I will activate input five and say yes so you can switch to OK and let's make it falls and once more and you can see suddenly three.
因此,根据输入 5,在从关闭到开启状态的上升沿,该数据立即递增该数据寄存器值。
So on the rising edge from off to on condition according to input five, this data is incrementing immediately this data register value.
如果我们在那一刻使用我们正在做的事情,我们就会达到条件 anta 。
If we are using following at that moment what we are doing, we are going to anta of condition.
那一刻,这个数据就变得一团糟。
And that moment, this data is diclemente by one.
好的,如果我们写信给你们两个,它将增加 2 或减少 2 或增加 2。
OK, if we are writing to you two, it will increment by two or by decrement by two or increment by two.
那么我们如何在这里使用上升和下降呢?
So this is how can we use rising and falling each in here?
你可以看到这一点非常重要。
You can see this is really important.
好的,这个条件以及我们如何增加和减少数据寄存器或任何,呃,全球数据或全球市场词?
OK, this condition and also how can we increment and decrement a data register or any, uh, global data or global market words?
好的,我完成了这个视频。
OK, I finished for this video.
下一个视频见。
See you in the next video.